/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aviso.managedbeans;


import javax.faces.model.SelectItem;
import aviso.entity.UserName;
import javax.faces.bean.ManagedBean;
/**
 *
 * @author avgusti
 */
@ManagedBean
public class UserNameTypeBean {
  public SelectItem[] getUserNameTypeValues() {
      
    SelectItem[] items = new SelectItem[UserName.Type.values().length];
    int i = 0;
    for(UserName.Type g: UserName.Type.values()) {
      items[i++] = new SelectItem(g, g.getLabel());
    }
    return items;
  }
}
